<!DOCTYPE html>
<!-- saved from url=(0080)http://www.17sucai.com/preview/522817/2016-11-14/renrenyoupin/shopping_cart.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <meta content="telephone=no,email=no" name="format-detection">


    <meta http-equiv="Expires" CONTENT="0">

    <meta http-equiv="Cache-Control" CONTENT="no-cache">

    <meta http-equiv="Pragma" CONTENT="no-cache">

    <link rel="stylesheet" href="__PUBLIC__/Css/gouwu_css/gg.css">
    <link rel="stylesheet" href="__PUBLIC__/Css/gouwu_css/shopping_cart.css">

    <script src="__PUBLIC__/Js/gouwu_js/jquery-1.8.3.min.js"></script>

    <script src="__PUBLIC__/Js/gouwu_js/shopping_cart.js"></script>
    <script src="__PUBLIC__/Js/gouwu_js/layer.js"></script>
    <script src="__PUBLIC__/Js/gouwu_js/swiper.min.js"></script>

    <link rel="stylesheet" href="__PUBLIC__/Css/gouwu_css/layer.css">

     <!--<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/semantic.css"/>
     <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/main.css">-->

    <!--<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/common.css">-->
   <!-- <script src="__PUBLIC__/Js/flickity-docs.min.js"></script>-->

    <title>购物车</title>
    <style type="text/css">
        .main-bottom {
            position: fixed;
            z-index: 1070;
            bottom: 0;
            width: 100%;
            height: 50px;
            padding: 1px 0;
            background-color: #bb3b33;
        }

        .main-bottom .col-xs-4 {
            width: 25% !important;
            float: left;
        }
        .main-bottom a {
            font-size: 14px;
            line-height: 14px;
            display: inline-block;
            width: 100%;
            height: 100%;
            text-align: center;
            color: #fff;
        }

    </style>




</head>
<body>

<div class="top">
    <a href="javascript:history.back()" class="back"></a>
    <span>购物车</span>
    <a href="JavaScript:void(0)" class="edit">编辑</a>
</div>


    <form name="form3" id="form_post" method="post" action="__APP__/Gouwu/delBuyList_all" autocomplete="off">
        <input name="action" hidden value="结算">
        <div class="main">
            <!--<p class="title">全选</p>-->



            <volist name="arr" id="vo" >
                <div class="product">
                <div class="commodity_box">
                    <div class="commodity">
                        <div class="check-box" style="display: none;">
                            <input  type="checkbox" name="oid[]" value="{$info[$vo['id']]['order_id']}" id="oid[]">
                        </div>
                        <div class="img lf">
                            <img src="{$info[$vo['id']]['img']}" alt="">
                        </div>

                        <div class="detail lf">
                            <p class="jieshao">{$info[$vo['id']]['name']}</p>
                            <p class="size"><!--【1灌装】800g/罐--></p>
                            <div class="price_num">
                                <div class="price lf">
                                    ￥<span>{$info[$vo['id']]['money']}</span>
                                </div>
                                <div class="num rf">
                                    <a href="__APP__/Gouwu/logisticsInfo/oid/{$vo.id}" style="  font-size:18px;  position: absolute;top: 20px;right:23px;color:#bb3a34">
                                        <img src="__PUBLIC__/Images/index/dizhi1.png" alt="">
                                    </a>
                                    <!--<button type="button">-</button>-->
                                    <span>{$info[$vo['id']]['num']}</span>
                                    <!--<button type="button">+</button>-->
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="del">
                        <a href="javascript:void(0);"  style="color: white;" data-id="{$info[$vo['id']]['order_id']}">
                            删除
                        </a>
                    </div>
                </div>
            </div>
            </volist>

        </div>
        <div class="pay" style="">
            <p style="width: 334px;">合计：￥ <span>228</span></p>
            <a href="javascript:void(0)"><input type="submit"  value="结算" style="background:none;outline:none;border:0px;color: white;">(<span></span>)</a>
        </div>
    </form>


    <!--<div class="empty">
        <img src="__PUBLIC__/Images/gouwu_img/kong_cart.png" alt="">
        <p>购物车空的~  T.T</p>
        <p class="sle">主人快给我挑点宝贝吧</p>
        <a href="javascript:void(0)">去逛逛</a>
    </div>-->

<!--<footer>
    <a href="http://www.17sucai.com/preview/522817/2016-11-14/renrenyoupin/index.html">首页</a>
    <a href="http://www.17sucai.com/preview/522817/2016-11-14/renrenyoupin/category.html">分类</a>
    <a href="http://www.17sucai.com/preview/522817/2016-11-14/renrenyoupin/shopping_cart.html" class="active">购物车</a>
    <a href="http://www.17sucai.com/preview/522817/2016-11-14/renrenyoupin/my_center.html">我的</a>
</footer>-->



<include file="Public:footer" />
</body></html>
<script>

/*
    $(document).ready(function(e) {
        var counter = 0;
        if (window.history && window.history.pushState) {
            console.log(window.histor);

            $(window).on('popstate', function () {
                window.history.pushState('forward', null, '#');
                window.history.forward(1);
                //alert("不可回退");
                location.replace(document.referrer);//刷新
            });
        }

        window.history.pushState('forward', null, '#'); //在IE中必须得有这两行
        window.history.forward(1);
    });
*/


    $(function(){
 /*       window.location.reload();
*/

        //按钮单击时执行
        $(".del a").click(function(e){

            event.preventDefault();
            //del_id = $(e.target).attr('data-id');
            del_id = $(this).attr('data-id');

            $.ajax({
                type: "POST",
                url: "__APP__/Gouwu/delBuyListAjax/id/" + del_id,
                async: false,
                success: function(data){
                    if (data == false) {
                        event.stopPropagation();
                        alert('删除失败');
                    }
                },
                error: function () {
                }
            });
        });

        $(".commodity").click(function () {
            var checkbox = $(this).find(':checkbox');
            checkbox.prop('checked', !checkbox.prop('checked'));
        });

        $(".pay a").click(function () {
           /* var action=$('#action').val();
            if(1){ alert(action);}*/

            $("#form_post").submit();
        });
    });



</script>
